
//数据
//需要5v FT 才可以读写 5V芯片
#define Data0 PB8
#define Data1 PB9
#define Data2 PB10
#define Data3 PB11
#define Data4 PB12
#define Data5 PB13
#define Data6 PB14
#define Data7 PB15


#define chipWE PA8
#define chipOE PA9
//#define chipCE PA15
#define chipCE PC13


#define A_0   PB0
#define A_1   PB1
#define A_2   PA10
#define A_3   PB3
#define A_4   PB4
#define A_5   PB5
#define A_6   PB6
#define A_7   PB7
#define A_8   PA0
#define A_9   PA1
#define A_10  PA2
#define A_11  PA3
#define A_12  PA4
#define A_13  PA5
#define A_14  PA6
#define A_15  PA7

//#define A_16  PC13
//#define A_17  PC14
//#define A_18  PC15
#define A_16  PC14
#define A_17  PC15
#define A_18  PA15

//单指令耗时13.9ns 4条指令需要 55.6ns
#define delay14ns  {asm volatile("nop");}
#define delay55ns  {asm volatile("nop"); asm volatile("nop");asm volatile("nop"); asm volatile("nop");}
#define delay110ns {delay55ns;delay55ns;}
